#include <stdio.h>

#define ONE_FLAG (1<<0)
#define TWO_FLAG (1<<1)
#define THREE_FLAG (1<<2)
#define FOUR_FLAG (1<<3)

void Print(int flag)
{
    if(flag & ONE_FLAG)
    {
        printf("one ");
    }
    if(flag & TWO_FLAG)
    {
        printf("two ");
    }
    if(flag & THREE_FLAG)
    {
        printf("three ");
    }
    if(flag & FOUR_FLAG)
    {
        printf("four ");
    }
}

int main()
{
    Print(ONE_FLAG);
    printf("\n");
    Print(TWO_FLAG);
    printf("\n");
    Print(THREE_FLAG);
    printf("\n");
    Print(FOUR_FLAG);
    printf("\n");
    printf("\n");
    Print(ONE_FLAG | TWO_FLAG);
    printf("\n");
    Print(ONE_FLAG | TWO_FLAG | THREE_FLAG);
    printf("\n");
    Print(ONE_FLAG | TWO_FLAG | THREE_FLAG | FOUR_FLAG);
    printf("\n");

    return 0;
}
